Page({
  data: {
    userInfo: {},
    schoolUrl: null
  },

  onLoad: function () {
    var that = this
    var baseUrl = wx.getStorageSync('baseUrl')
    var schoolUrl = wx.getStorageSync('imageBaseUrl') + 'school.jpg'
    var userInfo = wx.getStorageSync('userInfo')
    userInfo.avatar = baseUrl + userInfo.avatar
    that.setData({
      userInfo: userInfo,
      schoolUrl: schoolUrl
    })
  },
  //任务管理
  myPublic: function () {
    wx.navigateTo({
      url: '/pages/myPublic/myPublic'
    })
  },
  //接收任务
  myTask: function () {
    wx.navigateTo({
      url: '/pages/receiveTask/receiveTask'
    })
  },
  //个人设置
  mySet: function () {
    wx.navigateTo({
      url: '/pages/myself/myself'
    })
  }
})